
import Head from 'next/head'

<Head>
  <script>
    {
      `(function() {
         var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?e60fb290e204e04c5cb6f79b0ac1e697";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
       })();`
    }
  </script>
</Head>

![LangChain](https://pica.zhimg.com/50/v2-56e8bbb52aa271012541c1fe1ceb11a2_r.gif)





Azure Files
===============
> 
>[Azure Files](https://learn.microsoft.com/en-us/azure/storage/files/storage-files-introduction)是在云中提供的完全托管的文件共享，可通过行业标准的Server Message Block（`SMB`)协议、Network File System (`NFS`)协议和`Azure Files REST API`进行访问。
> 
> 
> 

本文介绍如何从Azure Files中加载文档对象。

```python
#!pip install azure-storage-blob

```

```python
from langchain.document_loaders import AzureBlobStorageFileLoader

```

```python
loader = AzureBlobStorageFileLoader(conn_str='<connection string>', container='<container name>', blob_name='<blob name>')

```

```python
loader.load()

```

```python
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': '/var/folders/y6/8_bzdg295ld6s1_97_12m4lr0000gn/T/tmpxvave6wl/fake.docx'}, lookup_index=0)]

```

